package DataStructure.CollectionLearning.CollectionImplements;

import java.util.ArrayList;

public class Demo1 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("你好");
        arrayList.add("世界");
        ArrayList<String> arrayList2 = new ArrayList<>();
        arrayList2.add("世界");
        arrayList2.add("你好");
        System.out.println(arrayList.equals(arrayList2));
        System.out.println(arrayList);
        arrayList.clear();
        System.out.println(arrayList);
    }
}
